package com.rongmai.db.mapper;

import com.rongmai.db.dto.NewsDTO;
import com.rongmai.db.model.News;

import java.util.List;

/**
* @author 张
* @description 针对表【news(新闻表)】的数据库操作Mapper
* @createDate 2024-03-10 09:17:05
* @Entity com.rongmai.db.model.News
*/
public interface NewsMapper {

    int deleteByPrimaryKey(Long id);

    int insert(News record);

    News selectByPrimaryKey(Long id);

    int updateByPrimaryKey(News record);

    List<News> pageList(NewsDTO newsDTO);

    int count(NewsDTO newsDTO);

}
